package com.dianjing.dianqun.dao.dianpai;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.dianjing.dianqun.common.base.CrudMpper;
import com.dianjing.dianqun.model.DianPaiContent;

public interface DianPaiContentMapper extends CrudMpper<DianPaiContent> {
	int deleteByPrimaryKey(Integer contentId);

	int insert(DianPaiContent record);

	int insertSelective(DianPaiContent record);

	DianPaiContent selectByPrimaryKey(Integer contentId);

	int updateByPrimaryKeySelective(DianPaiContent record);

	int updateByPrimaryKey(DianPaiContent record);

	List<DianPaiContent> selectAllContent();

	void cancelCollection(@Param("userId")Integer userId, @Param("contentId")Integer contentId);

	void collectionContent(@Param("userId")Integer userId, @Param("contentId")Integer contentId);

	List<DianPaiContent> selectContentByUser(@Param("userId") Integer userId);

}